package com.snacksmall.controller;

import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.snacksmall.dto.OrdersDto;
import com.snacksmall.model.Orders;
import com.snacksmall.service.IOrdersService;
@Controller
@ResponseBody
@RequestMapping("adminorders")
public class OrdersController {
	@Resource
	private IOrdersService ordersService;
	@RequestMapping("/queryOrdersAll.do")
	public Map QueryOrdersAll(OrdersDto ordersDto){
		return ordersService.queryOrdersAll(ordersDto);		
	}
	@RequestMapping("/editOrders.do")
	public int editOrders(Orders orders){
		return ordersService.editOrders(orders);
	}
	@RequestMapping("/delOrders.do")
	public int delOrders(int orderId){
		return ordersService.delOrders(orderId);
	}
}
